package Gamedemo;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.sql.*;

public class ImageRetriever {
    public static void main(String[] args) {
        String filePath = "C:\\Users\\tedu\\IdeaProjects\\jsd\\java2411\\123.png";

        try (FileInputStream fis = new FileInputStream(filePath)) {
            // 读取文件内容
            int data;
            while ((data = fis.read()) != -1) {
                // 处理读取的数据
                System.out.print((char) data);
            }
        } catch (FileNotFoundException e) {
            System.err.println("文件未找到: " + filePath);
            e.printStackTrace();
        } catch (IOException e) {
            System.err.println("读取文件时发生错误: " + filePath);
            e.printStackTrace();
        }


    }
}
